<?php
$AccName = "";
//---------------------Lay thong tin ve acc sap xoa
$sql_select = "SELECT * FROM tblaccount WHERE iAccountId = $id";
$rs=$dbsql->query($sql_select);
while ($result = $dbsql->fetch_array($rs))
{
	$AccName .= $result["cName"];
}


	//---------------------Xoa acc da duoc chi dinh
	$sql_delete = "DELETE FROM tblaccount WHERE iAccountId = $id and iAccountId <> 1";
	$dbsql->query($sql_delete);

	//--------------------Cap nhat tracking
	$cActions = " Delete AccName : $AccName ";
	Insert_Tracking($cActions);

//----------------Ket thuc - chuyen trang
page_transfer("Delete success !",$pagetr);
exit();
?>